package admin

import (
	auto "beergo/app/check/auto/controller"
	"beergo/app/check/conf"
	"github.com/beego/beego/v2/server/web"
)

type TaskAdminController struct {
	auto.TaskController
}

func init() {
	web.Router(conf.UrlPrefixAdmin + "/Task/:id", 		&TaskAdminController{}, "*:GetAction")
	web.Router(conf.UrlPrefixAdmin + "/Task/info", 		&TaskAdminController{}, "*:InfoAction")
	web.Router(conf.UrlPrefixAdmin + "/Task/scan", 		&TaskAdminController{}, "*:ScanAction")
	web.Router(conf.UrlPrefixAdmin + "/Task/list", 	    &TaskAdminController{}, "*:ListAction")
	web.Router(conf.UrlPrefixAdmin + "/Task/update", 	&TaskAdminController{}, "*:UpdateAction")
	web.Router(conf.UrlPrefixAdmin + "/Task/create", 	&TaskAdminController{}, "*:CreateAction")
	web.Router(conf.UrlPrefixAdmin + "/Task/copy", 	    &TaskAdminController{}, "*:CopyAction")
	web.Router(conf.UrlPrefixAdmin + "/Task/edit", 	    &TaskAdminController{}, "*:EditAction")
	web.Router(conf.UrlPrefixAdmin + "/Task/delete", 	&TaskAdminController{}, "*:DeleteAction")
	web.Router(conf.UrlPrefixAdmin + "/Task/:id/:field", &TaskAdminController{}, "*:SonsAction")
	web.Router(conf.UrlPrefixAdmin + "/Task/choice", &TaskAdminController{}, "*:ChoiceAction")
	web.Router(conf.UrlPrefixAdmin + "/Task/category", &TaskAdminController{}, "*:CategoryAction")
}
//func (this *TaskAdminController) Prepare() {}
//func (this *TaskAdminController) ListAction() {}
//func (this *TaskAdminController) GetAction() {}
//func (this *TaskAdminController) InfoAction() {}
//func (this *TaskAdminController) ScanAction() {}
//func (this *TaskAdminController) CreateAction() {}
//func (this *TaskAdminController) UpdateAction() {}
//func (this *TaskAdminController) CopyAction() {}
//func (this *TaskAdminController) DeleteAction() {}
//func (this *TaskAdminController) EditAction() {}
//func (this *TaskAdminController) SonsAction() {}
//func (this *TaskAdminController) ChoiceAction() {}
//func (this *TaskAdminController) CategoryAction() {}
